package com.kady.service.impl;

import com.kady.Dao.MenuDao;
import com.kady.contant.BeanFactoryConstant;
import com.kady.entity.Menu;
import com.kady.factory.BeanFactory;
import com.kady.service.MenuService;

import java.sql.SQLException;
import java.util.List;
/**
 * \* Created with IntelliJ IDEA.
 * \* User: kady
 * \* Date: 2021/3/24
 * \* Time: 21:08
 * \* 千峰JAVA2101班
 * \* Description: 菜单业务层
 * \
 */

public class MenuServiceImpl implements MenuService {
    private MenuDao menuDao = (MenuDao)BeanFactory.getBean(BeanFactoryConstant.MENU_DAO);

    @Override
    public List<Menu> getMenuList() throws SQLException {
        List<Menu> res = menuDao.selectMenuList();
        return res;
    }
}
